<template>
  <c-tags
    class="contract-direction"
    :data="[
      {
        label: $getEnum(status, flag),
        color:
          flag === status.buyer.value // 采购（买家）
            ? 'blue'
            : flag === status.seller.value // 销售（卖家）
            ? 'green'
            : 'blue'
      }
    ]"
  ></c-tags>
</template>

<script>
import { businessDirection } from "@/dict/contract";
export default {
  props: {
    flag: {
      type: Number
    }
  },
  data() {
    return {
      status: businessDirection
    };
  }
};
</script>
